//
//  ZJCycleImageView.h
//  CycleImageScrollDemo
//
//  Created by 郑佳 on 16/6/15.
//  Copyright © 2016年 Triangle. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZJCycleImageViewCell.h"
@protocol ZJCycleImageViewDelegate;

typedef NS_ENUM(NSInteger, ZJCycleImageViewPageContolAliment) {
    
    ZJCycleImageViewPageContolAlimentCenter,
    ZJCycleImageViewPageContolAlimentLeft,
    ZJCycleImageViewPageContolAlimentRight
    
};

@interface ZJCycleImageView : UIView

/** 初始化*/
- (instancetype)initWithFrame:(CGRect)frame banners:(NSArray *)banners;
- (instancetype)initWithFrame:(CGRect)frame banners:(NSArray *)banners titles:(NSArray *)titles style:(ZJCycleImageViewStyle)style;
- (instancetype)initWithFrame:(CGRect)frame banners:(NSArray *)banners titles:(NSArray *)titles detailTitles:(NSArray *)detailTitles style:(ZJCycleImageViewStyle)style;

/** 设置collectionView的背景色，默认白色*/
@property (nonatomic, strong) UIColor *backgroundColor;
/** 设置标题文字的颜色 */
@property (nonatomic, strong) UIColor *titleColor;
/** 设置详细描述文字的颜色 */
@property (nonatomic, strong) UIColor *detailTitleColor;
/** 设置标题文字大小，默认是14 */
@property (nonatomic, assign) NSInteger titleFoneSize;
/** 设置详细描述文字大小，默认是12 */
@property (nonatomic, assign) NSInteger detaiTitleFoneSize;
/** 是否在只有一张图时隐藏pagecontrol，默认为YES */
@property(nonatomic) BOOL hidesForSinglePage;
/** 是否显示分页控件 */
@property (nonatomic, assign) BOOL showPageControl;
/** 分页指示器当前页的颜色 */
@property (nonatomic, strong) UIColor *currentPageIndicatorColor;

/** 分页指示器其他页颜色 */
@property (nonatomic, strong) UIColor *otherPageIndicatorColor;

/** 分页指示器图标的大小 */
@property (nonatomic, assign) CGSize pageControlIconSize;

/** 分页指示器位置,默认是center */
@property (nonatomic, assign) ZJCycleImageViewPageContolAliment pageControlAliment;

@property (nonatomic, weak) id<ZJCycleImageViewDelegate> delegate;

/** 只有一张轮播图时是否自动循环 */
- (void)closeLoop;

@end

@protocol ZJCycleImageViewDelegate <NSObject>

@optional
- (void)cycleImageViewDidClick:(NSInteger)index;

@end
